home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
prolog
/
ai.prl
/
opnprlg1.hqx
/
Open Prolog
/
Samples
/
Tak
< prev
next >
Wrap
Text File
|
1993-02-04
|
170b
|
11 lines
tak(A,B,C,C) :-
A=<B,!.
tak(A,B,C,D) :-
tak1(A,B,C,E),!,
tak1(B,C,A,F),!,
tak1(C,A,B,G),!,
tak(E,F,G,D).
tak1(A,B,C,D) :-
E is A-1,
tak(E,B,C,D).